﻿using Survey.Models;
using System.ComponentModel;

namespace Survey.ViewModels
{
    /// <summary>
    /// Used to represent a survey view model
    /// </summary>
    public interface ISurveyViewModel : INotifyPropertyChanged
    {
        /// <summary>
        /// The Survey this ViewModel is representing
        /// </summary>
        SurveyModel Survey { get; }

        /// <summary>
        /// Occurs when a vote is placed for a option
        /// </summary>
        /// <param name="option">Option which the vote was placed for</param>
        void VoteForOption(string option);
    }
}
